package com.itholmes.test;

import java.util.ArrayList;
import java.util.List;

import com.itholmes.bean.Result;
import com.itholmes.tomcat.MyRequest;
import com.itholmes.tomcat.MyResponse;
import com.itholmes.tomcat.MyServlet;

public class bb extends MyServlet{
	@Override
	public void doGet(MyRequest req, MyResponse resp) {
		//获取参数
		String paratem = req.getInputStream();
		
		//值传递
		Result result = new Result();
		List<String> list = new ArrayList<String>();
		list.add("我是list");
		result.setCode(1);
		result.setData(list);
		result.setMsg("我是aa");
		req.setAttribute("key", result);
		
//		req.getRequestDispatcher("/aa").forward(req, resp);
	}
	@Override
	public void doPost(MyRequest req, MyResponse resp) {
		// TODO Auto-generated method stub
		this.doGet(req, resp);
	}
}
